package com.totoro.domain;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

//毕业生的建议实体类
@Entity
@Table(name = "advice")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Advice extends BaseDomain {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;// 主键
	/**
	 * @generated
	 */
	@Column(length = 255)
	private String advice;// 建议
	/**
	 * @generated
	 */
	private Date createDate;// 创建时间

	// 空构造器
	public Advice() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @generated
	 */
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate
	 * @generated
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * @generated
	 */
	public String getAdvice() {
		return advice;
	}

	/**
	 * @param advice
	 * @generated
	 */
	public void setAdvice(String advice) {
		this.advice = advice;
	}
}